const http = uni.$u.http

// 获取最新课程
export const mostNew = (data) => http.post('/wx-article/mostNew', data)

// 获取最热课程
export const mostHeat = (data) => http.post('/course/mostHeat', data)

// 获取课程
export const searchCourse = (data) => http.post('/wx-article/mostNew', data)

// 免费课程
export const freeCourse = (data) => http.post('/wx-article/mostNew', data)

export const getFirstCategorys = (data) => http.get('/wx-category/getFirstCategorys', {params:data})

export const getSecondCategorys = (data) => http.get('/wx-category/getSecondCategorys', {params:data})